// 日常工作 - 需要权限控制的菜单
const routineJurisdictionRoutes = [
  {
    path: '/routine',
    name: 'routine',
    meta: {
      title: '日常工作'
    },
    component: () => import('@/views/Routine')
  },
  {
    path: '/routine/opinions',
    name: 'routine-opinions',
    meta: {
      title: '问题反馈'
    },
    component: () => import('@/views/Routine/Opinion')
  },
  {
    path: '/routine/online',
    name: 'routine-online',
    meta: {
      title: '在线联系'
    },
    component: () => import('@/views/Routine/Online')
  },
  // 日志
  {
    path: '/routine/log',
    name: 'routine-log',
    meta: {
      title: '我的日志'
    },
    component: () => import('@/views/Routine/Log')
  },
  {
    path: '/routine/log/report',
    name: 'routine-log-report',
    meta: {
      title: '日志上报'
    },
    component: () => import('@/views/Routine/Log/Report')
  },
  // 绩效考核
  {
    path: '/routine/appraisal',
    name: 'routine-appraisal',
    meta: {
      title: '绩效考核'
    },
    component: () => import('@/views/Routine/Appraisal/appraisal')
  },
  {
    path: '/routine/workTasks',
    name: 'routine-workTasks',
    meta: {
      title: '绩效考核'
    },
    component: () => import('@/views/Routine/WorkTasks')
  }
]

// 日常工作 - 不需要权限控制的菜单
const routineWhiteRoutes = [
  // 日志
  {
    path: '/routine/log/detail',
    name: 'routine-log-detail',
    meta: {
      title: '日志详情'
    },
    component: () => import('@/views/Routine/Log/Detail')
  },
  // 绩效考核
  {
    path: '/routine/appraisal/requirement',
    name: 'routine-appraisal-requirement',
    meta: {
      title: '点击最新绩效考核要求'
    },
    component: () => import('@/views/Routine/Appraisal/requirement')
  },
  {
    path: '/routine/workTasks/leaderTaskDetail',
    name: 'routine-workTasks-LeaderTaskDetail',
    meta: {
      title: '领导任务详情'
    },
    component: () => import('@/views/Routine/WorkTasks/LeaderTaskDetail')
  },
  {
    path: '/routine/workTasks/leaderTaskDetail/taskComplete',
    name: 'routine-workTasks-LeaderTaskDetail-taskComplete',
    meta: {
      title: '领导任务点击完成'
    },
    component: () => import('@/views/Routine/WorkTasks/LeaderTaskDetail/TaskComplete')
  },
  {
    path: '/routine/workTasks/plan',
    name: 'routine-workTasks-plan',
    meta: {
      title: '工作计划点击完成'
    },
    component: () => import('@/views/Routine/WorkTasks/Plan')
  },
  {
    path: '/routine/workTasks/plan/detail',
    name: 'routine-workTasks-plan-detail',
    meta: {
      title: '工作计划点击完成'
    },
    component: () => import('@/views/Routine/WorkTasks/Plan/Detail')
  }
]

// 日常工作 - 菜单
const routineRoutes = [...routineJurisdictionRoutes, ...routineWhiteRoutes]

export { routineJurisdictionRoutes, routineWhiteRoutes, routineRoutes }
